package com.schoolai.tts.feign;

import com.schoolai.feign.tts.IVoice;
import com.schoolai.tts.service.CosyVoiceService;
import com.schoolai.util.base.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright(C),2019-2025，XX公司
 * FileName:Voice
 * Author:bobby
 * 创建时间：2025/9/30 14:56
 * Description:合成语音文件
 * History:
 * <auth>        <time>       <version>       <desc>
 * 作者          修改时间       版本号         描述
 */
@RestController
public class Voice implements IVoice {
    @Autowired
    CosyVoiceService cosyVoiceService;
    @Override
    public void genVoiceFile(String text) {
        cosyVoiceService.genVoiceFile(text);
    }
}
